import request from '@/utils/request'

// 查询列表
export function listEaFeeRule(query) {
  console.log('listRule', query)
  return request({
    url: '/system/eaFeeRule/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getEaFeeRule(id) {
  return request({
    url: `/system/eaFeeRule/${id}`,
    method: 'get'
  })
}

// 新增
export function addEaFeeRule(data) {
  return request({
    url: '/system/eaFeeRule',
    method: 'post',
    data: data
  })
}

// 修改
export function updateEaFeeRule(data) {
  return request({
    url: '/system/eaFeeRule',
    method: 'put',
    data: data
  })
}

// 删除
export function delEaFeeRule(roleId) {
  return request({
    url: `/system/eaFeeRule/${roleId}`,
    method: 'delete'
  })
}

// 查询列表
export function eaFeeRuleAllSelect(query) {
  console.log('listRule', query)
  return request({
    url: '/system/eaFeeRule/optionSelect',
    method: 'get',
    params: query
  })
}
